package cn.data.collection.dto;

import java.util.concurrent.ExecutorService;

public class ThreadsDTO implements java.io.Serializable{

	/** 
	* @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么) 
	*/
	private static final long serialVersionUID = 1L;
	
	private String shoulihao;
	
	private Runnable thread;
	
	private boolean enableFlag = true;
	
	private boolean runFlag = false;
	
	private int version;//版本号，1为锁定 0为解锁
	
	private ExecutorService executorService;

	public String getShoulihao() {
		return shoulihao;
	}

	public void setShoulihao(String shoulihao) {
		this.shoulihao = shoulihao;
	}

	public Runnable getThread() {
		return thread;
	}

	public void setThread(Runnable thread) {
		this.thread = thread;
	}

	public boolean isEnableFlag() {
		return enableFlag;
	}

	public void setEnableFlag(boolean enableFlag) {
		this.enableFlag = enableFlag;
	}

	public boolean isRunFlag() {
		return runFlag;
	}

	public void setRunFlag(boolean runFlag) {
		this.runFlag = runFlag;
	}

	public int getVersion() {
		return version;
	}

	public void setVersion(int version) {
		this.version = version;
	}

	public ExecutorService getExecutorService() {
		return executorService;
	}

	public void setExecutorService(ExecutorService executorService) {
		this.executorService = executorService;
	}
	
	

}
